// JavaScript Document
$(document).ready(function(){
	var wHeight = $(window).height();
	var wWidth = $(window).width();

	resetColumnHeight();
	/*
	$('.homepage-partner ul li a img, #partner-list ul li a img, .product-list-image img').hover(function(){
		$(this).stop().animate({opacity:1},300)
	},function(){
		$(this).stop().animate({opacity:0.7},300)
	})
	*/
	
	$('#cloud-club').tagcloud({
		sizemin:12,
		colormax:"216591",
		colormin:"216591",
		height:150
	});
		
	//Toggle text input with class "txtInput_toggle"
	$('.txtInput_toggle').focus(function() {
		value=$(this).val();
		$(this).attr("value","");
	});
	$('.txtInput_toggle').blur(function() {
		if($(this).val()=="") {
			$(this).val(value);
		}
	});	
	
	
	
	//$('.ie_text_shadow_1').textShadow();
});

function resetColumnHeight(){
	//reset 2 column template
	var x1 = $('#col2-right').height(),
		x2 = $('#col2-left').height();
	if(x2 < x1) 
		$("#col2-left").css({'height':x1});
	else $("#col2-right").css({'height':x2});
	
	//reset 3 column template
	var y1 = $('#col3-left').height(),
		y3 = $('#col3-right').height(),
		y2 = $('#col3-mid').height();
		
	if(y1 < y2 || y3 < y2) 
		$('#col3-left, #col3-right').css({'height':y2});
	else $('#col3-mid').css({'height':y1});

	}
